package com.hhq.sso.common.page;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;

/**
 * <p>
 * Description: 分页工具
 * </p>
 *
 * @author : xiaodong.yang
 * @date : 2024/6/20 14:31
 */
@Data
@Accessors(chain = true)
@Schema(description = "查询条件")
public class Query {
    /**
     * 当前页
     */
    @Schema(description = "当前页")
    private Integer current;

    /**
     * 每页的数量
     */
    @Schema(description = "每页的数量")
    private Integer size;

    /**
     * 排序的字段名
     */
    @Schema(accessMode = READ_ONLY)
    private String ascs;

    /**
     * 排序方式
     */
    @Schema(accessMode = READ_ONLY)
    private String descs;
}
